<template>
    <el-tabs v-model="activeName">
        <el-tab-pane :label="$t('menu.inventory')" name="inventory">
            <inventory :belong-module="1" :header="false"></inventory>
        </el-tab-pane>
        <el-tab-pane :label="$t('menu.ship')" name="ship">
            <ship v-if="activeName === 'ship'"></ship>
        </el-tab-pane>
    </el-tabs>

</template>

<script>
    import inventory from '../../components/service/inventory'
    import ship from '../../components/service/ship'

    export default {
        data() {
            return {
                activeName: 'inventory'
            }
        },
        components: {
            inventory, ship
        }
    }
</script>
